/*
 * VCRState.java
 *
 * Created on January 9, 2006, 9:35 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.mbari.vcr.udp01;

import org.mbari.vcr.VCRStateAdapter;

/**
 * 
 * @author brian
 */
public class VCRState extends VCRStateAdapter {

    /**
	 * @uml.property  name="playing"
	 */
    private boolean playing = true;

    /**
	 * @uml.property  name="connected"
	 */
    private boolean connected = true;
    
    /**
	 * @uml.property  name="recording"
	 */
    private boolean recording = true;

    /** Creates a new instance of VCRState */
    public VCRState() {
    }

    public boolean isStopped() {
        return false;
    }

    public boolean isStill() {
        return false;
    }

    public boolean isPlaying() {
        return playing;
    }

    /**
	 * @param playing  the playing to set
	 * @uml.property  name="playing"
	 */
    protected void setPlaying(boolean playing) {
        this.playing = playing;
        notifyObservers();
    }

    protected void notifyObservers() {
        super.notifyObservers();
    }

    public boolean isConnected() {
        return connected;
    }

    /**
	 * @param connected  the connected to set
	 * @uml.property  name="connected"
	 */
    protected void setConnected(boolean connected) {
        this.connected = connected;
        this.playing = connected;
        this.recording = connected;
        notifyObservers();
    }

    public boolean isRecording() {
        return recording;
    }

    /**
	 * @param recording  the recording to set
	 * @uml.property  name="recording"
	 */
    public void setRecording(boolean recording) {
        this.recording = recording;
        notifyObservers();
    }

}
